<?php

namespace App\Http\Controllers\Admin;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Facades\Services\RecyclingBagService;

class DesktopController extends Controller
{
    public function getDay(){
    	return formatJsonResponse(RecyclingBagService::getRecyclingBagByDay());
    }

    public function getWeek(){
    	return formatJsonResponse(RecyclingBagService::getRecyclingBagByWeek());
    }

    public function getMonth(){
    	return formatJsonResponse(RecyclingBagService::getRecyclingBagByMonth());
    }

    public function getYear(){
    	return formatJsonResponse(RecyclingBagService::getRecyclingBagByYear());
    }

    public function getThisTotle(){
        return formatJsonResponse(RecyclingBagService::getThisTotle());
    }
}
